import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
Vue.use(VueRouter)

const routes = [{
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    //实例路由懒加载
    path: '/playmv',
    name: 'playmv',
    component: () => import('../components/video/PlayMv.vue')
  },
  {
    path: '/serch',
    name: 'serch',
    component: () => import('../views/Serch.vue')
  },
  {
    path: '/playmusic',
    name: 'playmusic',
    //实例路由懒加载
    component: () => import('../views/PlayMusic.vue')
  },
  // {
  //   path: '/goods',
  //   name: 'goods',
  //   //实例路由懒加载
  //   component: () => import('../views/Goods.vue')
  // },
  {
    path: '/index',
    name: 'index',
    //实例路由懒加载
    component: () => import('../views/Index.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router